<?PHP
include 'admin/m/constants.php';
global $conf;
$config=$conf;
$c_content=false;

// main controller processes the page for default Q

//if($_SESSION['secret'] == 1 && $conf->q != 'user/secret')
//{
//		header('Location: '.$conf->absolute_path.'user/secret');
//}
//else 
if($conf->q == 'urcc')
{
	$home=true;
	$conf->set_default_q();
}
else if(empty($_GET['q']))
{
	$home=true;
	
}
else
{
	$conf->q=$_GET['q'];
}
mp('----------------------------------------Master Loaded----------------------------------------');
//rp($_SESSION);
include 'modules.php';
$filename_to_find='admin/m/'.$conf->module.'/c_'.$conf->module.'.php';

if(file_exists($filename_to_find))
{
	$message = 'Found';
	include($filename_to_find);
}

include 'fb/facebook.php';
include 'fb/fbenabler.php';
mp('secret: '.$_SESSION['secret']);
mp($conf->page_render);
?>